import Home from '../pages/Home' // 注意: 所有的模块化规范都是这样规定的,如果要引入的是某个文件夹中的index.js.则index.js可以忽略
import About from '../pages/About'
import News from '../pages/News'
import Message from '../pages/Message'
import Detail from '../pages/Detail'

export default [
  {
    path: 'home',
    element: <Home></Home>,
    children: [
      {
        path: 'news',
        element: <News></News>,
      },
      {
        path: 'message',
        element: <Message></Message>,
        children: [
          {
            path: 'detail/:id',
            element: <Detail></Detail>,
          },
        ],
      },
    ],
  },
  {
    path: 'about',
    element: <About></About>,
  },
]
